/**
 * Copyright (c) 快宝网络 kuaidihelp.com Co., Ltd. All Rights Reserved 禁止外泄以及用于其它的商业用途
 */

import { Request, Response } from 'express';
import Mock from 'mockjs';
const { mock } = Mock;
import { responseSuccess } from '../utils';

export default {
  'POST /YzMinGanCiManage/getMinGanCiList': (req: Request, res: Response) => {
    const type = req.body.type;
    res.json(
      mock({
        code: '0',
        msg: '请求成功',
        data: {
          'count|50-100': 50,
          'list|5-20': [
            {
              id: '@id',
              word: '@cword(3,5)',
              create_user: /\d{11}$/,
              created_at: '@datetime',
              check_type: type,
            },
          ],
        },
      }),
    );
  },
  'POST /YzMinGanCiManage/delMinGanCi': (req: Request, res: Response) => responseSuccess(req, res),
  'POST /YzMinGanCiManage/addMinGanCi': (req: Request, res: Response) => responseSuccess(req, res),
};
